package com.di.base;

import com.zaxxer.hikari.HikariDataSource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;

@Slf4j
@SpringBootApplication
@EnableFeignClients(basePackages = "com.di.base.feign")
@EnableDiscoveryClient
public class OrderApplication {

    @Autowired
    private DataSource businessDataSource;

    @Autowired
    private DataSource sagaDataSource;

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
